<template>
  <div class="app-container">
    <el-card class="box-card">
      <div class="cont-top">
        <div class="con-title">
          测试
          <el-button @click="doUpdate" type="success" size="mini"
            >替换数据滚动列表是否更新数据测试</el-button
          >
        </div>
      </div>
      <div class="cont-bottom">
        <DatavTable ref="DatavTable" />
      </div>
    </el-card>
  </div>
</template>

<script>
// datav-轮播表
import DatavTable from './datavSeamlessConnectionDataSon.vue'
export default {
  name: 'Purejs',
  components: {
    DatavTable
  },
  methods: {
    // datav-轮播表添加数据
    doUpdate () {
      this.$refs.DatavTable.ceshi()
    }
  }
}
</script>

<style lang="scss" scoped>
.app-container {
  ::v-deep .box-card {
    width: 32%;
    height: 328px;
    margin: 0 2% 1% 0;
    &:nth-child(3n) {
      margin-right: 0;
    }

    .el-card__body {
      height: 100%;
      padding: 0;
      display: flex;
      flex-direction: column;
      // align-items: center;
      .cont-top {
        height: 50px;
        .con-title {
          line-height: 50px;
          padding-left: 10px;
          font-size: 16px;
          // font-family: PingFang SC-Bold, PingFang SC;
          font-weight: 700;
          border-bottom: 1px solid #f4f4f4;
        }
      }
      .cont-bottom {
        flex: 1;
        padding: 10px;
      }
      .PieDevicetype {
        background: rgba(2, 29, 159, 0.7);
      }
    }
  }
}
</style>